<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/sncss/css/combo.select.css" rel="stylesheet" type="text/css" />

</head>

<body>

	<div class="place">
	<span>位置：</span>
	<ul class="placeul">
	<li><a>首页</a></li>
	<li><a>管理员管理</a></li>
	<li><a>创建管理员</a></li>
	</ul>
	</div>

	<div class="formbody">
		<div class="formtitle"><span>创建管理员</span></div>
		<form id="form1" name="form1" method="post" enctype="multipart/form-data" action="{:U('/Home/Admin/add_admin')}" onsubmit="return form1_submit();">
			<ul class="forminfo">
				<li><label>用户名</label><input name="username" id="username" type="text" class="dfinput" value="" /><i></i></li>
				<li><label>密码</label><input name="password" id="password" type="text" class="dfinput" value=""/><i></i></li>
				<li><label>性别</label>
					<label><input name="sex" type="radio" value="1" checked="checked"/>男</label>
					<label><input name="sex" type="radio" value="2" />女</label>
				</li>
				<li><label>类型</label>
					<label><input name="founder" type="radio" value="0" checked="checked"/>管理员</label>
					<label><input name="founder" type="radio" value="3" />市场部</label>
					<label><input name="founder" type="radio" value="4" />运营部</label>
				</li>
				<li><label>权限</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='member'>主播管理</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='audit'>审核管理</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='media'>自媒体管理</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='bgm'>背景音管理</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='sign'>签约管理</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='show'>展示管理</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='order'>订单管理</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='send'>值班主播</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='message'>消息管理</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='money'>财务管理</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='work'>工单管理</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='audio'>音频管理</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='add_del'>加钱扣钱</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='inside'>内部账号</label>
					<label><input type='checkbox' id='box' name='power_list[]' value='system'>系统管理</label>
					<i id="span_take_price"></i>
				</li>
				<li><br><br><label>&nbsp;</label>
					<input name="" type="submit" class="btn" id="overflow" value="确认"/>
				</li>
			</ul>
		</form>
	</div>
</body>
<script src="__PUBLIC__/admin/Js/jquery-1.7.2.min.js"></script>
<script src="__PUBLIC__/layer/layer.js"></script>
<script type="text/javascript">
function form1_submit(){

	var username= $('#username').val();
	if(username.length == 0){
		layer.msg('请填写账号');return false;
	}
	var password = $.trim($('#password').val());
	if (password.length == 0) {
		layer.msg('请填写密码');return false;
	};
	var len=$("input[name='power_list[]']:checked").val();
	if(len==undefined){
		alert('请分配管理员权限');return false;
	}
	$("#overflow").attr("disabled","disabled");
	layer.load(1, {shade: [0.8, '#393D49']});
}
</script>
</html>
